package com.qf.pojo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.util.List;
import java.util.Map;

@Component
public class User {
    @Value("zhangsan")
    private String name;

    private java.sql.Date pubdate;
    @Value("20")
    private long age;
    @Value("20,ting,209,34")
    private List list;

    private Map map;


    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", pubdate=" + pubdate +
                ", age=" + age +
                ", list=" + list +
                ", map=" + map +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public long getAge() {
        return age;
    }

    public void setAge(long age) {
        this.age = age;
    }

    public List getList() {
        return list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public Map getMap() {
        return map;
    }

    public void setMap(Map map) {
        this.map = map;
    }
}
